{css style/canbo-update.css}
{js scripts/canbo-update.js}
<div id="update">
{if submit|0}

{else submit}
    <form id="update-form" class="form-horizontal" method="post" action="/canbo/process" enctype="multipart/form-data">
        <fieldset>
            <legend>Thông tin cá nhân</legend>
            <div class="control-group">
                <label class="control-label required" for="cb_sodt">Số điện thoại</label>
                <div class="controls">
                    <input type="text" id="cb_sodt" name="cb_sodt" value="{$cb_sodt}">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label required">Tình trạng hôn nhân</label>

                <div class="controls">
                    <input type="hidden" id="cb_kethon_archive" value="{$cb_kethon|1}">
                    <label class="radio inline">
                        <input type="radio" id="cb_kethon0" name="cb_kethon" value="0">
                        Độc thân
                    </label>
                    <label class="radio inline">
                        <input type="radio" id="cb_kethon1" name="cb_kethon" value="1">
                        Đã kết hôn
                    </label>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label required" for="cb_diachi">Địa chỉ</label>

                <div class="controls">
                    <input type="text" name="cb_diachi" id="cb_diachi" value="{$cb_diachi}">
                </div>
            </div>

            <div class="control-group">
                <label class="control-label required" for="cb_email">Email</label>

                <div class="controls">
                    <input type="text" name="cb_email" id="cb_email" value="{$cb_email}">
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="cb_hinh">Ảnh <em>(Chọn ảnh khác nếu muốn thay đổi)</em></label>

                <div class="controls">
                    <img src="{$cb_hinh}" alt="ảnh hiện tại" width="128px" height="128px" style="display: block;">
                    <input type="file" name="cb_hinh_new" id="cb_hinh" >
                </div>
            </div>
            <div class="control-group buttons">
                <a href="">Quay trở lại</a>
                <button type="submit" class="btn" name="submit">Cập nhật</button>
                <input type="hidden" name="type" value="update">
            </div>
        </fieldset>

    </form>
{/if submit}
</div>